package edu.hnnu.sport_event.service;

import edu.hnnu.sport_event.entity.Score;
import edu.hnnu.sport_event.mapper.RankingMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Deprecated
public class RankingService implements BasicService<Score> {

    @Resource
    RankingMapper rankingMapper;

    @Override
    public int insert(Score score) {
        return 0;
    }

    @Override
    public int delete(int id) {
        return rankingMapper.delete(id);
    }

    @Override
    public int modify(Score score) {
        return 0;
    }

    @Override
    public Score select(int id) {
        return null;
    }

    public Score selectByEventId(int eventId) {
        return rankingMapper.selectByEventId(eventId);
    }



}
